package com.yyfax.pay.depository.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yyfax.pay.depository.domain.FuiouFileDownloadDetail;

/**
 * 文件下载详细持久化接口
 * 
 * @author buyi
 * @date 2017-09-29 09:45:45
 * @since v2.0.0
 */
public interface FuiouFileDownloadDetailDao {
	/**
	 * 保存实体
	 * 
	 * @author buyi
	 * @date 2017-09-29 09:46:01
	 * @since v2.0.0
	 * @param record
	 * @return
	 */
	public int insert(FuiouFileDownloadDetail record);

	/**
	 * 批量插入
	 * 
	 * @author buyi
	 * @date 2017-09-30 14:01:01
	 * @since v2.0.0
	 *
	 * @param details
	 * @return
	 */
	public int insertBatch(@Param("details") List<FuiouFileDownloadDetail> details);

	/**
	 * 根据商户号和业务主键id获取集合
	 * 
	 * @author buyi
	 * @date 2017-09-07 11:37:31
	 * @since v2.0.0
	 * @param merchantCode
	 * @param busiId
	 * @return
	 */
	public List<FuiouFileDownloadDetail> selectListByBusiId(@Param("merchantCode") String merchantCode, @Param("busiId") String busiId);

	/**
	 * 更新文件状态
	 * 
	 * @author buyi
	 * @date 2017-09-07 17:29:05
	 * @since v2.0.0
	 * @param detail
	 * @return
	 */
	public int update(FuiouFileDownloadDetail detail);

	/**
	 * 批量更新文件
	 * 
	 * @author buyi
	 * @date 2017-09-30 10:37:37
	 * @since v2.0.0
	 * @param details
	 * @return
	 */
	public int updateBatch(@Param("details") List<FuiouFileDownloadDetail> details);
}